<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<div th:fragment="order-personalhead-nav">
	<!-- 顶部导航条开始 -->
	<div class="puhuishopping_common_titlelink" id="puhuishopping_common_titlelink">
		<!-- 导航条左部 -->
		<div class="centerbody">
			<div class="title_left">
				<a th:href="@{/}" class="puhuishopping_common_city" id="puhuishopping_common_city">返回普惠商城首页</a>
				<!-- <div class='citylist' id='citylist'></div> -->
			</div>	
		    <!-- 导航条右部 -->
			<!-- 已登录 -->
			<div class="title_right" th:if = "${member}">
				您好&nbsp;&nbsp;,&nbsp;
				<span th:if="${member.memberName == null || member.memberName == ''}">
					<a th:href="@{/personal/loadPersonal}" class="puhuishopping_common_login" id="puhuishopping_common_login" th:text="${member.memberPhone}"></a>
				</span>
				<span th:unless="${member.memberName == null || member.memberName == ''}">
					<a th:href="@{/personal/loadPersonal}"  class="puhuishopping_common_login" id="puhuishopping_common_login" th:text="${member.memberName}"></a>
				</span>
				<a href="javascript:logout()" class="puhuishopping_common_hyzc">[退出]</a>
				<a th:href="@{/shopping/order/findOnlineOrders}" class="puhuishopping_common_wddd">我的订单</a>
				<a href="" class="puhuishopping_common_ydsc">移动商城</a>
				<div style="clear: both"></div>
			</div>
			<!-- 未登录 -->
			<div class="title_right" th:unless = ${member}>
				您好&nbsp;&nbsp;,&nbsp;<a th:href="@{/member/loadlogin}" class="puhuishopping_common_login" id="puhuishopping_common_login">请登录</a>
				<a th:href="@{/member/loadRegister}" class="puhuishopping_common_hyzc">会员注册</a>
				<a th:href="@{/shopping/order/findOnlineOrders}" class="puhuishopping_common_wddd">我的订单</a>
				<a href="" class="puhuishopping_common_ydsc">移动商城</a>
				<div style="clear: both"></div>
			</div>
		</div>	
	</div>
	<script th:inline="javascript">
		//注销方法
		function logout(){
			layer.confirm('是否退出？', {
			 btn: ['是','否'] //按钮
			 }, function(){
				 window.location.href="/member/logout";
			});
		}
	</script>
</div>